//
//  RTJCustomButton.m
//  RuiTaiJinProject
//
//  Created by jayson on 2018/11/28.
//  Copyright © 2018年 leewei. All rights reserved.
//

#import "RTJCustomButton.h"

@implementation RTJCustomButton

- (void)layoutSubviews{
    [super layoutSubviews];
    // 调整图片    
    self.imageView.x = 8;
    self.imageView.y = -8;
    self.imageView.width = 42;
    self.imageView.height = 42;
    self.imageView.clipsToBounds = true;
    self.imageView.contentMode = UIViewContentModeScaleToFill;
    // 调整标签
    self.titleLabel.x = -2;
    self.titleLabel.y = self.imageView.height+self.imageView.frame.origin.y-2;
    self.titleLabel.width = self.width;
    self.titleLabel.height = 15;
    [self.titleLabel setFont:[UIFont systemFontOfSize:12]];
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
}

@end
